package com.celesea;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author : hanang128
 * @Description:
 * @Date: Created in 13:50 2018-2-26
 * Modified By
 */
@FeignClient(value = "service-hi",fallback = HelloServiceHystrix.class)
public interface HelloService {

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String sayHi(@RequestParam("name") String name);
}
